import { Opt } from '__com/Opt.js'
import ruleOpt from '@/option/rule.js'

export class msgOpt extends Opt {
  constructor() {
    super()
  }
  
  create() {
    return [
      [{
        title: '权限ID',
        key: 'id',
        text: {},
      },
      {
        title: '上级权限ID',
        key: 'parentId',
        text: {},
      },
      {
        title: '权限级别',
        key: 'menuLevel',
        text: {},
      },
      {
        title: '权限名称',
        key: 'title',
        input: {
          maxlength:20
        },
        placeholder:'请输入权限名称',
        rules: [
          ruleOpt.required('权限名称不能为空'),
        ]
      }]
    ]
  }
}